import request from '@/utils/request'

// 查询站点关联列表
export function listRealtion(query) {
  return request({
    url: '/vehicle/realtion/list',
    method: 'get',
    params: query
  })
}

// 查询站点关联详细
export function getRealtion(realtionId) {
  return request({
    url: '/vehicle/realtion/' + realtionId,
    method: 'get'
  })
}

// 新增站点关联
export function addRealtion(data) {
  return request({
    url: '/vehicle/realtion',
    method: 'post',
    data: data
  })
}

// 修改站点关联
export function updateRealtion(data) {
  return request({
    url: '/vehicle/realtion',
    method: 'put',
    data: data
  })
}

// 删除站点关联
export function delRealtion(realtionId) {
  return request({
    url: '/vehicle/realtion/' + realtionId,
    method: 'delete'
  })
}
